package core.battle
{
	import flash.display.Shape;

	public class GameObject extends Shape
	{
		public function GameObject()
		{
		}
		
		public function update( deltaTime : Number ) : void {
		}
		
		public function init() : void {
		}
		
		public function resize() : void {
		}
		
		public function dispose() : void {
		}
		
		public function isIn() :Boolean {
			return x >= 0 && x <= Game.WIDTH && y >= 0 && y <= Game.HEIGHT;
		}
		
		public function isHit( object : GameObject ) :Boolean {
			return this.hitTestPoint( object.x , object.y, true );
		}
	}
}